from django.conf.urls import patterns, include, url
from foxdiary.views import *
from diary.views import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'foxdiary.views.home', name='home'),
    # url(r'^foxdiary/', include('foxdiary.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),

    # my self url
    url(r'^$', foxdiary_main),
    url(r'^hello/$', hello),
    url(r'^time/$', current_datetime),
    url(r'^time/plus/(?P<hours>\d+)/$', time_plus),
    url(r'^newtime/$', new_datetime),
    url(r'^department/$', department),
    url(r'^employee/$', employee),
    url(r'^project/$', project),
    url(r'^task/$', task),
    url(r'^task_json/$', task_json),
)
